package cn.gaomh.daboajian;

public class SingleTon {

	private String name;
	private static SingleTon instance;

	private SingleTon() {
	}

	public static synchronized SingleTon getInstance() {
		if (SingleTon.instance == null) {
			SingleTon.instance = new SingleTon();
		}
		return instance;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
